package com.shiguiwu.springmybatis.spring.autowiredi;

import lombok.Data;

/**
 * @description: 人类
 * @author: stone
 * @date: Created by 2021/3/10 12:13
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.autowiredi
 */
@Data
public class Person {

    //自定注入，按照名字注入
    private Book bookByName;

    //自动注入，类型注入
    private Book bookByType;

    //构造器注入
    private Book book;

    public Person() {

    }

    public Person(Book book) {
        this.book = book;
    }
}
